from datetime import datetime
import pytest

@pytest.fixture(scope = 'session')
def ff():
    print("我也是fixture,但是被fixture使用 ")

@pytest.fixture(autouse = True,scope = 'session')
def f(ff):

    print(datetime.now(),'用例开始执行')
    yield 123
    print(datetime.now(),'用例执行结束 ')

@pytest.fixture()
def sellnium(webdriver=None):
    d = webdriver.Chrome()
    yield  d
    d.quit()
